FROM  centos:6.6
MAINTAINER  root   <root.db.root@gmail.com>
ENV          TZ    "Asia/Shanghai"
ENV          TERM   xterm

RUN           yum install -y curl wget tar bzip2 unzip vim-enhanced passwd sudo yum-utils hostname net-tools rsync man && \
              yum install -y gcc gcc-c++ git make automake cmake patch logrotate python-devel libpng-devel libjpeg-devel && \
              yum install openssh-server  openssl  openssh-client  passwd -y &&  \
	      rm -f /etc/ssh/ssh_host_ecdsa_key /etc/ssh/ssh_host_rsa_key && \
              ssh-keygen -q -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N '' && \
	      ssh-keygen -q -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ''  && \
	      sed -i "s/#UsePrivilegeSeparation.*/UsePrivilegeSeparation no/g" /etc/ssh/sshd_config 

RUN           useradd   mcc && \
 	      echo jidian123 | passwd  --stdin  root  && \
 	      echo jidian123 | passwd  --stdin  mcc 

EXPOSE   22
#ENTRYPOINT    ["/usr/sbin/sshd"]  
#CMD ["-D"]
ENTRYPOINT     ["/usr/sbin/sshd","-D" ]
